package com.bj58.analysis.tools.original.bean;

import com.bj58.analysis.tools.common.bean.LogBean;

/**
 * @description click原始日志存储
 * @author tzc
 *
 */
public class OriginalClickBean implements LogBean {
	private String cookieID="";	//cookieId
	private String epoch="";		//时间戳
	private String userIp="";		//客户端用户ip
	private String loginUid="";	// 当前登陆用户id
	private String busine="";		//业务线
	private String catePath="";	// cateid的fullpaths
	private String areaPath="";	// areaid的fullpaths
	private String pageType="";	//当前页面业务类型(list|detail|post等)
	private String page="";		//二级业务线类型
	private String url="";			//当前url
	private String referrer="";	//来路访问url
	private String urlParams=""; //常规参数串
	private String userAgent="";	//userAgent串
	private String version="";		//日志版本，不提供提取方法
	private String source="";	//渠道
	
	//附加字段
	private String status="";//请求状态
	private String responseTime="";//请求相应时间
	private String trackUrl =""; //trackUrl
	
	public String getCookieID() {
		return cookieID;
	}
	public void setCookieID(String cookieID) {
		this.cookieID = cookieID;
	}
	public String getEpoch() {
		return epoch;
	}
	public void setEpoch(String epoch) {
		this.epoch = epoch;
	}
	public String getUserIp() {
		return userIp;
	}
	public void setUserIp(String userIp) {
		this.userIp = userIp;
	}
	public String getLoginUid() {
		return loginUid;
	}
	public void setLoginUid(String loginUid) {
		this.loginUid = loginUid;
	}
	public String getBusine() {
		return busine;
	}
	public void setBusine(String busine) {
		this.busine = busine;
	}
	public String getCatePath() {
		return catePath;
	}
	public void setCatePath(String catePath) {
		this.catePath = catePath;
	}
	public String getAreaPath() {
		return areaPath;
	}
	public void setAreaPath(String areaPath) {
		this.areaPath = areaPath;
	}
	public String getPageType() {
		return pageType;
	}
	public void setPageType(String pageType) {
		this.pageType = pageType;
	}
	public String getPage() {
		return page;
	}
	public void setPage(String page) {
		this.page = page;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public String getReferrer() {
		return referrer;
	}
	public void setReferrer(String referrer) {
		this.referrer = referrer;
	}
	public String getUrlParams() {
		return urlParams;
	}
	public void setUrlParams(String urlParams) {
		this.urlParams = urlParams;
	}
	public String getUserAgent() {
		return userAgent;
	}
	public void setUserAgent(String userAgent) {
		this.userAgent = userAgent;
	}
	public String getVersion() {
		return version;
	}
	public void setVersion(String version) {
		this.version = version;
	}
	
	public String getSource() {
		return source;
	}
	public void setSource(String source) {
		this.source = source;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	
	public String getResponseTime() {
		return responseTime;
	}
	public void setResponseTime(String responseTime) {
		this.responseTime = responseTime;
	}
	
	public String getTrackUrl() {
		return trackUrl;
	}
	public void setTrackUrl(String trackUrl) {
		this.trackUrl = trackUrl;
	}
	
	@Override
	public String toString() {
		return cookieID + "\001" + epoch + "\001" + userIp + "\001"
				+ loginUid + "\001" + busine + "\001" + catePath + "\001"
				+ areaPath + "\001" + pageType + "\001" + page + "\001"
				+ url + "\001" + referrer + "\001" + urlParams + "\001"
				+ userAgent + "\001" + version + "\001" + status + "\001"
				+ responseTime + "\001" + trackUrl;
	}
	
	public String toStringOfETL(){
		return cookieID + "\001" + epoch + "\001" + userIp + "\001"
				+ loginUid + "\001" + busine + "\001" + catePath + "\001"
				+ areaPath + "\001" + pageType + "\001" + page + "\001"
				+ url + "\001" + referrer + "\001" + urlParams + "\001"
				+ userAgent + "\001" + version + "\001" +source;
	}
	
	
	
	
}
